﻿<controls:MetroWindow x:Class="DailyFx.Studio.MainWindow"
        
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:iv="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:in="http://schemas.microsoft.com/expression/2010/interactions" 
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"             
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"	
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"					 
        mc:Ignorable="d"	
        
        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
		xmlns:behaviour="clr-namespace:MahApps.Metro.Behaviours;assembly=MahApps.Metro"	
                             
        xmlns:studio="clr-namespace:DailyFx.Studio"  
        xmlns:local="clr-namespace:DailyFx.Studio;assembly="
        xmlns:ui="clr-namespace:DailyFx.UI;assembly=DailyFx.UI"
                      
        Title="DailyFx" Height="600" Width="800" Icon="/DailyFxStudio;component/app.ico">

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/FlatButton.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <controls:MetroWindow.GlowBrush>
        <SolidColorBrush Color="{DynamicResource AccentColor}" />
    </controls:MetroWindow.GlowBrush>

    <controls:MetroWindow.WindowCommands>
        <controls:WindowCommands>
            <Button Content="Flyout" ui:MsgProps.Register="[Event Click] = [Action OnFlyout()]"/>
            <Button Content="About" />
        </controls:WindowCommands>
    
    </controls:MetroWindow.WindowCommands>
   
    <controls:MetroWindow.Flyouts>
        <controls:FlyoutsControl x:Name="Flyouts" >
            <controls:FlyoutsControl.ItemContainerStyle>
                <Style BasedOn="{StaticResource {x:Type controls:Flyout}}" 
                        TargetType="{x:Type controls:Flyout}">
                    <Setter Property="Header" Value="{Binding Header}" />
                    <Setter Property="Position" Value="{Binding Position}" />
                    <Setter Property="IsOpen" Value="{Binding IsOpen}" />
                </Style>
            </controls:FlyoutsControl.ItemContainerStyle>
        </controls:FlyoutsControl>
    </controls:MetroWindow.Flyouts>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <!-- Main Menu
        <controls:MetroContentControl x:Name="MenuManager"  Grid.Row="0"/>
         -->
        <!-- View -->
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="68"/>
                <RowDefinition Height="20"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            
            <DockPanel Grid.Row="0" HorizontalAlignment="Left" >
                    <controls:Tile Title="RUN" Width="126" Height="86" Background="#FF5CBC67" VerticalAlignment="Center" Margin="15,0,2,0">
                        <Image Source="/Images/Run.png" >
                            <Image.RenderTransform>
                                <TranslateTransform X="20" Y="0"/>
                            </Image.RenderTransform>
                        </Image>
                    </controls:Tile>
                    <controls:Tile Title="STOP" Width="126" Height="86" Background="#FFED1F24" VerticalAlignment="Center" Margin="2,0,10,0">
                        <Image Source="/Images/stop.png" >
                            <Image.RenderTransform>
                                <TranslateTransform X="20" Y="0"/>
                            </Image.RenderTransform>
                        </Image>
                    </controls:Tile>
                </DockPanel>
            <!--
            <controls:MetroContentControl x:Name="ChartManager" Grid.Row="2"/>
            -->
        </Grid>
    </Grid>
</controls:MetroWindow>
